package com.us.user.services.impl;

import java.util.List;

import com.us.user.dao.ICompanyDeviceDAO;
import com.us.user.dao.ICompanyUserDAO;
import com.us.user.pojo.CompanyDevice;
import com.us.user.services.ICompanyDeviceServices;

public class CompanyDeviceServices implements ICompanyDeviceServices {
	private ICompanyDeviceDAO companyDeviceDAO;

	public ICompanyDeviceDAO getCompanyDeviceDAO() {
		return companyDeviceDAO;
	}

	public void setCompanyDeviceDAO(ICompanyDeviceDAO companyDeviceDAO) {
		this.companyDeviceDAO = companyDeviceDAO;
	}

	public List getDeviceList(int user_id) {
		// TODO Auto-generated method stub
		return companyDeviceDAO.getDeviceList(user_id);
	}

	public void addDevice(CompanyDevice companyDevice) {
		// TODO Auto-generated method stub
		companyDeviceDAO.addDevice(companyDevice);
	}

	public void delDevice(int device_id) {
		// TODO Auto-generated method stub
		companyDeviceDAO.delDevice(device_id);
	}
}
